todo_widget: Use util.strcmp instead of localeCompare for sorting.

This commit is contained in:
m-e-l-u-h-a-n 2021-06-12 15:25:42 +05:30 committed by Tim Abbott
parent 59143c1d4d
commit 712e32805e
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import render_widgets_todo_widget_tasks from "../templates/widgets/todo_widget_t
import * as blueslip from "./blueslip"; import * as blueslip from "./blueslip";
import {$t} from "./i18n"; import {$t} from "./i18n";
import * as util from "./util";
export class TaskData { export class TaskData {
task_map = new Map(); task_map = new Map();
@ -21,7 +22,7 @@ export class TaskData {
get_widget_data() { get_widget_data() {
const all_tasks = Array.from(this.task_map.values()); const all_tasks = Array.from(this.task_map.values());
all_tasks.sort((a, b) => a.task.localeCompare(b.task)); all_tasks.sort((a, b) => util.strcmp(a.task, b.task));
const pending_tasks = []; const pending_tasks = [];
const completed_tasks = []; const completed_tasks = [];