tokenshift / obsidian-page-gallery

Generates a gallery based on selected page contents.
MIT License
65 stars 2 forks source link

When the `sortBy` parameter is an array, pages are sorted by filepath and not by the specified sort parameter(s). #14

Closed tokenshift closed 1 year ago

tokenshift commented 1 year ago

When sortBy is an array, the default value file.path appears as the first element, with whatever the user specifies after that. This does not occur if only a single value is given (i.e. rather than an array with one element).

Example of debug output w/ sortBy: Description:

"sortBy": [
  "Description"
],

vs. with sortBy: [Description]:

"sortBy": [
  "file.path",
  "Description"
],