dboehmer / coocook

👨‍🍳🦉 Web application for collecting recipes and making food plans

Home Page:https://coocook.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong order of meals in project view

ChristinaSi opened this issue · comments

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.

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.