File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -269,11 +269,8 @@ async fn get_wasms(
269269 if !sort_stmt. is_empty ( ) {
270270 statement. push_str ( & sort_stmt) ;
271271 statement. push_str ( ", " ) ;
272- } else {
273- statement. push_str ( "rank DESC, " ) ;
274272 }
275- statement. push_str ( "ledger_sequence, id ASC\n " ) ;
276-
273+ statement. push_str ( "rank DESC, ledger_sequence, id ASC\n " ) ;
277274 statement. push_str ( "LIMIT $3" ) ;
278275
279276 let rows = sqlx:: query_as :: < _ , WasmResult > ( & statement)
@@ -563,11 +560,8 @@ async fn get_contracts_root(
563560 if !sort_stmt. is_empty ( ) {
564561 statement. push_str ( & sort_stmt) ;
565562 statement. push_str ( ", " ) ;
566- } else {
567- statement. push_str ( "rank DESC, " ) ;
568563 }
569- statement. push_str ( "ledger_sequence, id ASC\n " ) ;
570-
564+ statement. push_str ( "rank DESC, ledger_sequence, id ASC\n " ) ;
571565 statement. push_str ( "LIMIT $3" ) ;
572566
573567 let rows = sqlx:: query_as :: < _ , ContractResult > ( & statement)
You can’t perform that action at this time.
0 commit comments