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

Allow ordering of categories #87

Open
wvengen opened this issue Feb 7, 2013 · 7 comments
Open

Allow ordering of categories #87

wvengen opened this issue Feb 7, 2013 · 7 comments
Assignees

Comments

@wvengen
Copy link
Member

wvengen commented Feb 7, 2013

Currently it does not seem to be able to order categories. This can be quite confusing; the "Other" category, for example, would be placed best at the end; or cheese and milk could follow each other.

@bennibu
Copy link
Contributor

bennibu commented Feb 24, 2013

+1, but in the next milestone.

@wvengen
Copy link
Member Author

wvengen commented Jul 7, 2013

This may be part of a solution: https://github.com/swanandp/acts_as_list
or some others https://www.ruby-toolbox.com/categories/Active_Record_Sortables

Then, on the ui-side of things, something like this perhaps: https://harryche2008.wordpress.com/2008/07/19/how-to-do-ajax-style-drag-n-drop-sorting-with-rails/

when also tackling foodcoop-adam#30, one of https://www.ruby-toolbox.com/categories/Active_Record_Nesting (some of which include ordering)

@wvengen wvengen removed this from the 4.1 milestone Feb 12, 2014
@wvengen
Copy link
Member Author

wvengen commented Jun 26, 2014

Done in foodcoop-adam's beta branch, plus nested categories. Would need backporting to foodcoops' version, or adoption of the new user-interface.

@wvengen wvengen self-assigned this Jul 1, 2014
@wvengen wvengen removed the s:stalled label Oct 27, 2017
@twothreenine
Copy link
Contributor

This would be great (along with nested categories). Is it possible to adopt this from foodcoop-adam?

@twothreenine
Copy link
Contributor

Related to #1068.

Especially if you have a supplier with a broad product range with both fresh and dry goods, it is really inconvenient to have e.g. Beverages with 20 sorts of juice at the top and Vegetables at the bottom of a list of hundreds of articles. You'd want to put fresh goods to the top, as usually these are the articles that change the most often, so members will see the current offers at first when opening the order.

In my coop, this was so important that I renamed all 43 categories manually with prefixes like (a) to (z). Perhaps spaces could have been a workaround as well (works for sorting links).

A drag & drop list would be the best solution, I guess. Nesting would also be great, but way less important.

@amigalemming
Copy link

It might be simpler to just name the category "_Other".

@twothreenine
Copy link
Contributor

It might be simpler to just name the category "_Other".

That would move it to the top.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants