@@ -27,6 +27,8 @@ const roomsProp = R.prop('rooms')
27
27
const powerProp = R .prop (' power' )
28
28
const gclProp = R .prop (' gcl' )
29
29
const combinedRclProp = R .prop (' combinedRCL' )
30
+ const scoreProp = R .prop (' score' )
31
+ const rankProp = R .prop (' rank' )
30
32
31
33
const filterNPCUsers = R .filter (R .compose (R .not , R .includes (R .__ , [' 2' , ' 3' ]), R .prop (' id' )))
32
34
@@ -39,6 +41,8 @@ const sortByRooms = filterSortProp(roomsProp)
39
41
const sortByPower = filterSortProp (powerProp)
40
42
const sortByGCL = filterSortProp (gclProp)
41
43
const sortByCombinedRcl = filterSortProp (combinedRclProp)
44
+ const sortByScore = filterSortProp (scoreProp)
45
+ const sortByRank = filterSortProp (rankProp)
42
46
43
47
export default {
44
48
components: {
@@ -51,7 +55,9 @@ export default {
51
55
{ label: ' GCL' , field: ' gclLevel' , fn: sortByGCL },
52
56
{ label: ' Power' , field: ' powerLevel' , fn: sortByPower },
53
57
{ label: ' Rooms' , field: ' rooms' , fn: sortByRooms },
54
- { label: ' Comb. RCL' , field: ' combinedRCL' , fn: sortByCombinedRcl }
58
+ { label: ' Comb. RCL' , field: ' combinedRCL' , fn: sortByCombinedRcl },
59
+ { label: ' Score' , field: ' score' , fn: sortByScore },
60
+ { label: ' Rank' , field: ' rank' , fn: sortByRank },
55
61
]
56
62
}
57
63
},
0 commit comments