Skip to content

Commit

Permalink
order empty values before present values for all custom field formats
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Oct 11, 2024
1 parent 73daf9f commit 6870004
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/models/custom_field/order_statements.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ def order_join_statement
##
# Returns the null handling for the given direction
def order_null_handling(asc)
return unless %w[int float string date bool link].include?(field_format)

null_direction = asc ? "FIRST" : "LAST"
Arel.sql("NULLS #{null_direction}")
end
Expand Down

0 comments on commit 6870004

Please sign in to comment.