mirror of https://github.com/zulip/zulip.git
todo_widget: Use util.strcmp instead of localeCompare for sorting.
This commit is contained in:
parent
59143c1d4d
commit
712e32805e
|
@ -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 = [];
|
||||||
|
|
Loading…
Reference in New Issue