forked from vergnet/application-amicale
Sort proximo sections by id
This commit is contained in:
parent
6371d4a9ff
commit
5527c38c73
1 changed files with 5 additions and 0 deletions
|
@ -69,9 +69,14 @@ export default class ProximoMainScreen extends FetchedDataSectionList {
|
|||
}
|
||||
}
|
||||
}
|
||||
finalData.sort(ProximoMainScreen.sortFinalData);
|
||||
return finalData;
|
||||
}
|
||||
|
||||
static sortFinalData(a: Object, b: Object) {
|
||||
return a.type.id - b.type.id;
|
||||
}
|
||||
|
||||
getRightButton() {
|
||||
return (
|
||||
<Touchable
|
||||
|
|
Loading…
Reference in a new issue