Skip to content

Lists displayed when searching custom fields should sort alphanumerically but currently do not #1220

@varkatope

Description

@varkatope

First Check

  • This is not a feature request
  • I added a very descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the documentation, with the integrated search.
  • I already read the docs and didn't find an answer.
  • I can replicate the issue inside the Demo install.

Homebox Version

0.22.3

What is the issue you are experiencing?

Searching for custom fields by using the search options brings up a dropdown for Fields and one for Values. These lists are not sorted alphanumerically and ideally would be. If you only have a few custom fields, I guess it's not that big of a deal, but if you have many, it makes finding the right ones harder than it should be, especially since you can't search within the dropdown like you can in the Locations or Labels dropdowns

Image

.

How can the maintainer reproduce the issue?

Go to https://nightly.homebox.software/items and modify a few items to include custom fields, with the same fields appearing on more than one item. (Currently no custom fields exist in Demo or Nightly, and I think the instances are reset regularly).

Create the fields deliberately out of order, i.e. "Weight" comes before "Size," and "54 lbs" comes before "13 lbs", etc.

Then, go to Search > Options > Field Selector > Add and click on the dropdown for Field. The custom fields will remain out of order. The Values will also appear out of order.

Deployment

Docker (Linux)

Database Type

SQLite

OS Architechture

x86_64 (AMD, Intel)

Deployment Details

DigitalOcean, Docker container, Ubuntu Linux 22.04.5 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    🕷️ bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions