Fix asset ordering for old-pricing orders

This commit is contained in:
catbref 2019-08-16 08:18:34 +01:00
parent 6abc3f4d39
commit 3b3888ae0d

View File

@ -296,7 +296,7 @@ public class HSQLDBAssetRepository implements AssetRepository {
}
sql.append("ORDER BY price");
if (minimumPrice == null || haveAssetId < wantAssetId)
if (minimumPrice != null && haveAssetId < wantAssetId)
sql.append(" DESC");
sql.append(", ordered");