Browse Source

Sort proximo sections by id

keplyx 4 years ago
parent
commit
5527c38c73
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      screens/Proximo/ProximoMainScreen.js

+ 5
- 0
screens/Proximo/ProximoMainScreen.js View File

@@ -69,9 +69,14 @@ export default class ProximoMainScreen extends FetchedDataSectionList {
69 69
                 }
70 70
             }
71 71
         }
72
+        finalData.sort(ProximoMainScreen.sortFinalData);
72 73
         return finalData;
73 74
     }
74 75
 
76
+    static sortFinalData(a: Object, b: Object) {
77
+        return a.type.id - b.type.id;
78
+    }
79
+
75 80
     getRightButton() {
76 81
         return (
77 82
             <Touchable

Loading…
Cancel
Save