|
|
|
@@ -116,9 +116,8 @@ class DoPickOrderQueryService( |
|
|
|
.groupBy { it.key.first } |
|
|
|
.mapValues { (_, entries) -> |
|
|
|
entries.map { it.value } |
|
|
|
.filter { it.unassigned > 0 } // filter out lanes with no unassigned orders |
|
|
|
.filter { it.unassigned > 0 } // filter out lanes with no unassigned orders |
|
|
|
.sortedByDescending { it.unassigned } |
|
|
|
.take(3) |
|
|
|
} |
|
|
|
.filterValues { lanes -> lanes.isNotEmpty() } |
|
|
|
.toSortedMap(compareBy { it }) |
|
|
|
|