Merge pull request #765 from jessopb/chainsort
standardizes channelClaimsArray order to match lbryumx sorting
This commit is contained in:
commit
b8cce1bc69
2 changed files with 2 additions and 2 deletions
|
@ -904,7 +904,7 @@ var claimQueries = (db, table, sequelize) => ({
|
|||
};
|
||||
return await table.findAll({
|
||||
where: selectWhere,
|
||||
order: [['height', 'DESC']],
|
||||
order: [['height', 'DESC'],['claim_id', 'ASC']],
|
||||
})
|
||||
.then(channelClaimsArray => {
|
||||
if (channelClaimsArray.length === 0) {
|
||||
|
|
|
@ -103,7 +103,7 @@ export default (db, table, sequelize) => ({
|
|||
};
|
||||
return await table.findAll({
|
||||
where: selectWhere,
|
||||
order: [['height', 'DESC']],
|
||||
order: [['height', 'DESC'],['claim_id', 'ASC']],
|
||||
})
|
||||
.then(channelClaimsArray => {
|
||||
if (channelClaimsArray.length === 0) {
|
||||
|
|
Loading…
Reference in a new issue