blakearchive / archive

GNU General Public License v2.0
5 stars 7 forks source link

main menu order is inconsistent between dev and prod #511

Closed ghost closed 7 years ago

ghost commented 7 years ago

See first column of Illuminated Books on dev and prod

ghost commented 7 years ago

could this issue have to do with this?

http://stackoverflow.com/questions/15653688/preserving-column-order-in-python-pandas-dataframe

ghost commented 7 years ago

@nathan-rice how would i go about getting the menu order to correspond to the order of the works in works.csv (within their respective medium categories)? i thought if i just commented out the following line in directive.js for the menu directive, it would work:

data.sort(function(a, b) { return a.composition_date - b.composition_date; });

but commenting out that line seems to do nothing. and i couldn't find any place in the import scripts where the works might get sorted, so i'm not sure what's going on. we can't sort by composition_date because sometimes the dates (years) are the same for two works. so we'll have to let the editors sort the works (within their medium categories) manually in works.csv.

ghost commented 7 years ago

we will add another column to works.csv, composition_date_value, and use that as the sort key