Sort proximo sections by id

This commit is contained in:
keplyx 2019-09-17 11:07:58 +02:00
parent 6371d4a9ff
commit 5527c38c73

View file

@ -69,9 +69,14 @@ export default class ProximoMainScreen extends FetchedDataSectionList {
} }
} }
} }
finalData.sort(ProximoMainScreen.sortFinalData);
return finalData; return finalData;
} }
static sortFinalData(a: Object, b: Object) {
return a.type.id - b.type.id;
}
getRightButton() { getRightButton() {
return ( return (
<Touchable <Touchable