mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 00:02:00 +02:00
SpEcIaL SaUcE
This commit is contained in:
parent
985a2f8b60
commit
55dce7e80e
4 changed files with 40 additions and 1 deletions
|
@ -46,6 +46,9 @@ def browse_sites_dataset
|
|||
end
|
||||
|
||||
case params[:sort_by]
|
||||
when 'special_sauce'
|
||||
site_dataset.exclude! score: nil
|
||||
site_dataset.order! :score.desc
|
||||
when 'followers'
|
||||
site_dataset = site_dataset.association_left_join :follows
|
||||
site_dataset.select_all! :sites
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue