Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sortMrcPlans(mrcList) {
- mrcList.sort(
- firstBy(
- (plan1, plan2) => plan1.rankId - plan2.rankId, -1
- )
- .thenBy(
- (plan1, plan2) => plan1.termMonths - plan2.termMonths, -1
- )
- .thenBy(
- (plan1, plan2) => plan1.endingMiles - plan2.endingMiles, -1
- )
- .thenBy(
- (plan1, plan2) => plan1.memberPrice - plan2.memberPrice, 1
- )
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement