1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-18 23:07:45 +02:00

Desktop: Resolves #51: Add way to manually order notes by dragging them (#3235)

* Allow custom sorting

* Implement UI

* Set order from message box

* Fixed mistake

* Update NoteListItem.tsx

* Desktop: Fixed date popup dialog overflow issue inside info dialog
This commit is contained in:
Laurent Cozic
2020-05-27 17:21:46 +01:00
committed by GitHub
parent 66f1506429
commit 40d39d6268
14 changed files with 750 additions and 176 deletions

View File

@ -182,7 +182,7 @@ class BaseModel {
const items = [];
for (let i = 0; i < options.order.length; i++) {
const o = options.order[i];
let item = o.by;
let item = `\`${o.by}\``;
if (options.caseInsensitive === true) item += ' COLLATE NOCASE';
if (o.dir) item += ` ${o.dir}`;
items.push(item);