mirror of
https://github.com/iv-org/instances-api.git
synced 2024-12-25 23:49:24 -05:00
Update dependencies
This commit is contained in:
parent
771b0b31b2
commit
1a07a52113
@ -13,6 +13,6 @@ dependencies:
|
|||||||
github: kemalcr/kemal
|
github: kemalcr/kemal
|
||||||
version: ~> 0.26.1
|
version: ~> 0.26.1
|
||||||
|
|
||||||
crystal: 0.33.0
|
crystal: 0.34.0
|
||||||
|
|
||||||
license: AGPLv3
|
license: AGPLv3
|
||||||
|
@ -156,6 +156,8 @@ def sort_instances(instances, sort_by)
|
|||||||
compare = first <=> sort.call(b[0], b[1]).as(Float64)
|
compare = first <=> sort.call(b[0], b[1]).as(Float64)
|
||||||
when String
|
when String
|
||||||
compare = first <=> sort.call(b[0], b[1]).as(String)
|
compare = first <=> sort.call(b[0], b[1]).as(String)
|
||||||
|
else
|
||||||
|
raise "Invalid proc"
|
||||||
end
|
end
|
||||||
break if compare != 0
|
break if compare != 0
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user