dboehmer / coocook

👨‍🍳🦉 Web application for collecting recipes and making food plans
https://coocook.org/
Other
11 stars 2 forks source link

Wrong order of meals in project view #143

Open ChristinaSi opened 3 years ago

ChristinaSi commented 3 years ago

The meals in the view Project -> Show project are shown in the wrong order (the other way around than the order in which they were created) on Coocook.org. This occurs at existing projects as well as at new projects.

dboehmer commented 3 years ago

Confirmed. Display order of dishes is equal in project overview, project editor (“meals & dishes”) and print view.

New created dishes are prepended at the top of a meal. Strange, I think the SQL doesn’t contain any ORDER keyword but there’s probably a loop or array operation that reverses the order.

The real solution would be: Dishes should actually have an explicit order/position column and the UI should allow to reorder dishes at will.