Merge pull request #765 from jessopb/chainsort

standardizes channelClaimsArray order to match lbryumx sorting
This commit is contained in:
Shawn K 2018-11-28 20:50:54 -06:00 committed by GitHub
commit b8cce1bc69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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) {