change sorting function name
このコミットが含まれているのは:
コミット
0a28cf16e3
1個のファイルの変更、5行の追加、2行の削除
|
|
@ -65,7 +65,10 @@ const styles = StyleSheet.create({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
function sortFinalData(a: ProximoCategoryType, b: ProximoCategoryType): number {
|
function sortCategories(
|
||||||
|
a: ProximoCategoryType,
|
||||||
|
b: ProximoCategoryType
|
||||||
|
): number {
|
||||||
const str1 = a.name.toLowerCase();
|
const str1 = a.name.toLowerCase();
|
||||||
const str2 = b.name.toLowerCase();
|
const str2 = b.name.toLowerCase();
|
||||||
|
|
||||||
|
|
@ -217,7 +220,7 @@ function ProximoMainScreen() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
title: '',
|
title: '',
|
||||||
data: finalData.filter((c) => c.nb_articles > 0).sort(sortFinalData),
|
data: finalData.filter((c) => c.nb_articles > 0).sort(sortCategories),
|
||||||
keyExtractor: getKeyExtractor,
|
keyExtractor: getKeyExtractor,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
||||||
読み込み中…
新しいイシューから参照