mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Fix tslint error
This commit is contained in:
@ -147,8 +147,12 @@ export class MainPageViewModel extends observable.Observable {
|
|||||||
})
|
})
|
||||||
|
|
||||||
arrayOfKeys.sort((a, b) => {
|
arrayOfKeys.sort((a, b) => {
|
||||||
if (a < b) return -1;
|
if (a < b) {
|
||||||
if (a > b) return 1;
|
return -1;
|
||||||
|
}
|
||||||
|
if (a > b) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
return a.localeCompare(b);
|
return a.localeCompare(b);
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user