add popularidade ordering
This commit is contained in:
parent
5068d348af
commit
39faab6483
@ -19,7 +19,7 @@ namespace OpenCand.Repository
|
||||
FROM candidato c
|
||||
WHERE c.apelido % @q
|
||||
OR c.nome % @q
|
||||
ORDER BY sim DESC, length(c.nome) ASC
|
||||
ORDER BY c.popularidade DESC, sim DESC, length(c.nome) ASC
|
||||
LIMIT 10;
|
||||
", new { q = query })).AsList();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user