blacksmithgu / datacore

Work-in-progress successor to Dataview with a focus on UX and speed.
MIT License
1.25k stars 11 forks source link

Do you plan to implement the function of free sorting in the Datacore view. #41

Open chiusuan opened 4 months ago

chiusuan commented 4 months ago

For example, in a table, the order can be adjusted by dragging table rows and columns. In the card, you can move it up, down, left, and right.

blacksmithgu commented 4 months ago

Column sorting (i.e., re-ordering columns) will be supported; implementing it via drag and drop is actually surprisingly hard so that may not be available immediately, but some way to move columns around will be.

Row-level sorting will not be drag-and-droppable probably, at least not now. Datacore supports sorting, but it is always on data in the actual rows. That being said, this can probably be kind of simulated by adding a "priority" or "order" field to the table which you can change to specify custom orderings.

GamerGirlandCo commented 4 months ago

i can vouch for drag and drop being difficult to implement without a heavyweight library or reinventing the wheel 😭