|
@@ -291,7 +291,35 @@ const defaultDepartureSortFunction = (a: CommonData, b: CommonData) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- return isInternational ? takeOffCompare(a, b) : receiveCompare(a, b)
|
|
|
+ const receiveSureCompare = (a: CommonData, b: CommonData) => {
|
|
|
+ if (a.receiveSure1) {
|
|
|
+ if (b.receiveSure1) {
|
|
|
+ return takeOffCompare(a, b)
|
|
|
+ } else {
|
|
|
+ return -1
|
|
|
+ }
|
|
|
+ } else if (b.receiveSure1) {
|
|
|
+ return 1
|
|
|
+ } else {
|
|
|
+ return takeOffCompare(a, b)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ const enterCompare = (a: CommonData, b: CommonData) => {
|
|
|
+ if (a.enterPark) {
|
|
|
+ if (b.enterPark) {
|
|
|
+ return receiveSureCompare(a, b)
|
|
|
+ } else {
|
|
|
+ return -1
|
|
|
+ }
|
|
|
+ } else if (b.enterPark) {
|
|
|
+ return 1
|
|
|
+ } else {
|
|
|
+ return receiveSureCompare(a, b)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return isInternational ? enterCompare(a, b) : receiveCompare(a, b)
|
|
|
}
|
|
|
|
|
|
const defaultArrivalSortFunction = (a: CommonData, b: CommonData) => {
|
|
@@ -343,7 +371,7 @@ const defaultArrivalSortFunction = (a: CommonData, b: CommonData) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- return isInternational ? landingTimeCompare(a, b) : unloadCompare(a, b)
|
|
|
+ return unloadCompare(a, b)
|
|
|
}
|
|
|
|
|
|
const filterSortOptions = computed(() => ({
|