cedricium / firefly

:fire: Vue.js / Express.js Fullstack Web Application
MIT License
3 stars 1 forks source link

Remove `sortSites()` function; implement back-end ordering #8

Closed cedricium closed 6 years ago

cedricium commented 6 years ago

Currently in Sites.vue, a sortSites() function is used to reverse the order of the sites to make them appear as if they are in newest to oldest order. With Sequelize, we can create queries that will order the results for us which is what should be done.

This combined with #7 (using Bulma tiles) will ensure sites are presented in the proper order for smaller screen sizes such as tablets and phones where the sites current column system collapses on one another.

Refs: http://docs.sequelizejs.com/manual/tutorial/querying.html