standardizes channelClaimsArray order to match lbryumx sorting #765

Merged
jessopb merged 1 commit from chainsort into master 2018-11-29 03:50:55 +01:00
2 changed files with 2 additions and 2 deletions

View file

@ -904,7 +904,7 @@ var claimQueries = (db, table, sequelize) => ({
}; };
return await table.findAll({ return await table.findAll({
where: selectWhere, where: selectWhere,
order: [['height', 'DESC']], order: [['height', 'DESC'],['claim_id', 'ASC']],
}) })
.then(channelClaimsArray => { .then(channelClaimsArray => {
if (channelClaimsArray.length === 0) { if (channelClaimsArray.length === 0) {

View file

@ -103,7 +103,7 @@ export default (db, table, sequelize) => ({
}; };
return await table.findAll({ return await table.findAll({
where: selectWhere, where: selectWhere,
order: [['height', 'DESC']], order: [['height', 'DESC'],['claim_id', 'ASC']],
}) })
.then(channelClaimsArray => { .then(channelClaimsArray => {
if (channelClaimsArray.length === 0) { if (channelClaimsArray.length === 0) {