AppFlowy icon indicating copy to clipboard operation
AppFlowy copied to clipboard

[Bug] [minimal impact] Grid sorted by Select type property should adhere to user specified sort order.

Open Jaymax-NZ opened this issue 1 year ago • 4 comments

Bug Description

It is already possible to manual re-order the options for a select property and this ordering persists. It would be very helpful if this manual ordering was also applied to the view sorted by that property.

How to Reproduce

  1. Create db grid with selector property.
  2. Create three items in the grid that have unique options in the select field (e.g; A, B, C)
  3. Reorder the select options by dragging the handles to give an non-typical ordering from top to bottom (e.g; B, A, C)
  4. Open the DB Grid sort sub-head row and set the grid to be sorted by the select field.

Expected Behavior

Ideally, all DB views sorted by a select field should adhere to the persistent handle-drag manual ordering available whenever choosing (or creating) options for a select field.

Operating System

Win 11

AppFlowy Version(s)

0.8.2

Screenshots

Custom ordered 'priority' select field property options:

Image

Sort by 'priority' select field in DB grid:

Image

Additional Context

(I'm a few hours in to testing out AppFlowy for my purposes, and this level of nitpickery, and my taking the time to provide it (probably for it to get merged as duplicate ??? ) is a strong indicator that I'm way more invested-in, than frustrated-by, AppFlowy so far! Fantastic app.)

Jaymax-NZ avatar Feb 02 '25 03:02 Jaymax-NZ

Hi @Justin-Maxwell, thanks so much for reporting this issue! The current behavior is based on the alphabetical order of the option names. Your use case is very compelling though so this is definitely a change we could consider.

@annieappflowy

richardshiue avatar Feb 12 '25 07:02 richardshiue

I'd like to add my vote to this request. Especially bescause it is possible to manually sort the order of the options, giving the user the idea that the order is meaningfull

pascalpvk avatar Apr 10 '25 11:04 pascalpvk

The web app doesn't have this bug.

annieappflowy avatar Jun 15 '25 06:06 annieappflowy

This issue has already been fixed and will be included in the upcoming release (0.10.7). I’m closing this issue.

appflowy avatar Dec 10 '25 16:12 appflowy