Skip to content

Commit

Permalink
fix(sites) adding secondary sort on hostname, so now sorting sites by…
Browse files Browse the repository at this point in the history
… shortest, then hostname. (#27550)

ref: #27447
  • Loading branch information
wezell authored and dsolistorres committed Feb 9, 2024
1 parent c0fc0de commit 38cad1a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -136,7 +136,7 @@ public class HostFactoryImpl implements HostFactory {

// query that Exact matches should be at the top of the search results.
private static final String PRIORITIZE_EXACT_MATCHES =
"ORDER BY length(%s) ";
"ORDER BY length(%s), " + POSTGRES_SITENAME_COLUMN;

/**
* Default class constructor.
Expand Down

0 comments on commit 38cad1a

Please sign in to comment.