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

[BUG] - Sorting food data by label does not sort by label name #4630

Closed
6 tasks done
andrebk opened this issue Nov 30, 2024 · 0 comments · Fixed by #4631
Closed
6 tasks done

[BUG] - Sorting food data by label does not sort by label name #4630

andrebk opened this issue Nov 30, 2024 · 0 comments · Fixed by #4631
Labels
bug: confirmed bug Something isn't working

Comments

@andrebk
Copy link

andrebk commented Nov 30, 2024

First Check

  • This is not a feature request.
  • I added a very descriptive title to this issue (title field is above this).
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Mealie documentation, with the integrated search.
  • I already read the docs and didn't find an answer.
  • This issue can be replicated on the demo site (https://demo.mealie.io/).

What is the issue you are experiencing?

On the food data page you can sort the list of foods by the different columns by clicking on the header. For example clicking on the "name" header sorts the list by name.

When clicking on the "label" header the list is sorted by presence of a label, e.g. the foods with a label are at the top and the ones without are at the bottom or vice versa. However the foods with a label are not sorted by that label, but instead alphabetically by the name column.

I expected sorting by label to group all foods with the same label together, e.g. sorting alphabetically by the label name.

Steps to Reproduce

  1. Go to the "manage data" page and select the "foods" data in the dropdown.
  2. Click the "label" header to sort the table by label
  3. Observe that foods with the same label are not grouped together by the sorting

Please provide relevant logs

N/A

Mealie Version

v2.3.0
d6de0d0

Deployment

Docker (Linux)

Additional Deployment Details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: confirmed bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants