Ensure ordering for custom fields

This commit is contained in:
Andris Reinman 2017-03-08 19:07:51 +02:00
parent 6ef9836c14
commit ab6ed1e505

View file

@ -58,7 +58,7 @@ module.exports.list = (listId, callback) => {
return callback(err);
}
let query = 'SELECT * FROM custom_fields WHERE list=?';
let query = 'SELECT * FROM custom_fields WHERE list=? ORDER BY id';
connection.query(query, [listId], (err, rows) => {
connection.release();
if (err) {