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