Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

joplin ls --sort title does not sort notes by title in CLI v1.8.1 #5004

Closed
brianwisti opened this issue May 23, 2021 · 2 comments
Closed

joplin ls --sort title does not sort notes by title in CLI v1.8.1 #5004

brianwisti opened this issue May 23, 2021 · 2 comments
Labels
bug It's a bug stale An issue that hasn't been active for a while...

Comments

@brianwisti
Copy link

I think this worked in v1.6.x. I only discovered the --sort flag this morning, and then noticed my terminal installation of Joplin needed updating.

Environment

Joplin version: v1.8.1
Platform: Linux, terminal
OS specifics: Windows WSL2 Ubuntu 20.04

Steps to reproduce

  1. joplin mkbook sort-bug
  2. joplin mknote A
  3. joplin mknote B
  4. joplin ls --sort title

Describe what you expected to happen

$ joplin ls --sort title
A
B

Actual output

$ joplin ls --sort title
B
A

Logfile

The sequence used during a debug terminal UI session:

  1. joplin --debug --log-level debug
  2. :use sort-bug
  3. :ls
  4. :ls --sort title
  5. :exit
2021-05-23 12:39:50: App: "Profile directory: /home/random/.config/joplin"
2021-05-23 12:39:50: "Database was open successfully"
2021-05-23 12:39:50: "Checking for database schema update..."
2021-05-23 12:39:50: "Current database version", "{"version":35,"table_fields_version":35}"
2021-05-23 12:39:50: "Upgrading database from version 35"
2021-05-23 12:39:50: "New version: 35. Previously recorded version: 35"
2021-05-23 12:39:50: "KeychainService: checking if keychain supported"
2021-05-23 12:39:50: "KeychainService: check was already done - skipping. Supported:", "0"
2021-05-23 12:39:50: handleSyncStartupOperation: "Processing operation:", "0"
2021-05-23 12:39:50: App: "Client ID: 5d4fc1ce7b0e4d6dbb44a629313fb82d"
2021-05-23 12:39:50: "Trying to load 0 master keys..."
2021-05-23 12:39:50: "Loaded master keys: 0"
2021-05-23 12:39:50: "ResourceFetcher: Auto-add resources: Mode: always"
2021-05-23 12:39:50: "ResourceFetcher: Auto-added resources: 0"
2021-05-23 12:39:50: "Setting up recurrent sync with interval 300"
2021-05-23 12:39:50: App: "Refreshing notes:", "null", "null"
2021-05-23 12:39:50: "Trying to load 0 master keys..."
2021-05-23 12:39:50: "Loaded master keys: 0"
2021-05-23 12:39:50: "Scheduling sync operation...", "10000"
2021-05-23 12:39:50: "Setting up recurrent sync with interval 300"
2021-05-23 12:39:50: "Trying to load 0 master keys..."
2021-05-23 12:39:50: "Loaded master keys: 0"
2021-05-23 12:39:50: "Scheduling sync operation...", "10000"
2021-05-23 12:39:50: "Trying to load 0 master keys..."
2021-05-23 12:39:50: "Loaded master keys: 0"
2021-05-23 12:39:50: "Scheduling sync operation...", "10000"
2021-05-23 12:39:50: App: "Rebuilding items...", "null", "", "null"
2021-05-23 12:39:50: "RevisionService::runInBackground: Starting background service with revision collection interval 600000"
2021-05-23 12:39:50: App: "Refreshing notes:", "2", "49f04212e6d742728c46227d5b3e6349"
2021-05-23 12:39:50: App: "Rebuilding items...", "Folder", "49f04212e6d742728c46227d5b3e6349", "null"
2021-05-23 12:39:51: "DecryptionWorker: cannot start because no master key is currently loaded."
2021-05-23 12:39:54: "RevisionService::maintenance: Starting..."
2021-05-23 12:39:54: "RevisionService::maintenance: Service is enabled"
2021-05-23 12:39:54: "RevisionService::collectRevisions: Created revisions for 0 notes"
2021-05-23 12:39:54: "RevisionService::maintenance: Done in 104ms"
2021-05-23 12:39:55: App: "Shortcut:", ":", "{"keys":[":"],"type":"function","command":"enter_command_line_mode","canRunAlongOtherCommands":false}"
2021-05-23 12:39:58: App: "Refreshing notes:", "2", "49f04212e6d742728c46227d5b3e6349"
2021-05-23 12:39:58: App: "Rebuilding items...", "Folder", "49f04212e6d742728c46227d5b3e6349", "null"
2021-05-23 12:40:00: "SearchEngine: Updating FTS table..."
2021-05-23 12:40:00: "SearchEngine: Updated FTS table in 2ms. Inserted: 0. Deleted: 0"
2021-05-23 12:40:00: "Preparing scheduled sync"
2021-05-23 12:40:00: "Saving updated Dropbox auth."
2021-05-23 12:40:00: "Starting scheduled sync"
2021-05-23 12:40:00: "Sync: starting: Starting synchronisation to target 7... [1621798800406]"
2021-05-23 12:40:00: "Indexing resources..."
2021-05-23 12:40:00: "ResourceService::indexNoteResources: Start"
2021-05-23 12:40:00: "ResourceService::indexNoteResources: Completed"
2021-05-23 12:40:00: FileApi: "get info.json"
2021-05-23 12:40:01: "Sync target info:", "{"version":2}"
2021-05-23 12:40:01: FileApi: "list "
2021-05-23 12:40:01: FileApi: "list "
2021-05-23 12:40:01: App: "Shortcut:", ":", "{"keys":[":"],"type":"function","command":"enter_command_line_mode","canRunAlongOtherCommands":false}"
2021-05-23 12:40:01: FileApi: "put temp/timeCheck431373.txt", "null"
2021-05-23 12:40:02: FileApi: "stat temp/timeCheck431373.txt"
2021-05-23 12:40:02: FileApi: "delete temp/timeCheck431373.txt"
2021-05-23 12:40:02: FileApi: "put locks/sync_cli_5d4fc1ce7b0e4d6dbb44a629313fb82d.json", "null"
2021-05-23 12:40:03: FileApi: "list "
2021-05-23 12:40:03: FileApi: "list "
2021-05-23 12:40:03: FileApi: "delta "
2021-05-23 12:40:04: "Sync: fetchingTotal: Fetching delta items from sync target"
2021-05-23 12:40:04: FileApi: "delete locks/sync_cli_5d4fc1ce7b0e4d6dbb44a629313fb82d.json"
2021-05-23 12:40:04: "Saving settings..."
2021-05-23 12:40:04: "Settings have been saved."
2021-05-23 12:40:04: "Sync: finished: Synchronisation finished [1621798800406]"
2021-05-23 12:40:04: "Operations completed: "
2021-05-23 12:40:04: "fetchingTotal: -"
2021-05-23 12:40:04: "Total folders: 27"
2021-05-23 12:40:04: "Total notes: 138"
2021-05-23 12:40:04: "Total resources: 15"
2021-05-23 12:40:04: "Setting up recurrent sync with interval 300"
2021-05-23 12:40:05: App: "Shortcut:", ":", "{"keys":[":"],"type":"function","command":"enter_command_line_mode","canRunAlongOtherCommands":false}"
2021-05-23 12:40:05: "DecryptionWorker: cannot start because no master key is currently loaded."
2021-05-23 12:40:11: App: "Shortcut:", ":", "{"keys":[":"],"type":"function","command":"enter_command_line_mode","canRunAlongOtherCommands":false}"
@brianwisti brianwisti added the bug It's a bug label May 23, 2021
@stale
Copy link

stale bot commented Jun 23, 2021

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

@stale stale bot added the stale An issue that hasn't been active for a while... label Jun 23, 2021
@stale
Copy link

stale bot commented Jul 8, 2021

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug stale An issue that hasn't been active for a while...
Projects
None yet
Development

No branches or pull requests

1 participant