Adds a #sort query method to ActiveRecord that turns whitelisted user-supplied parameters into ORDER BY clauses -- ordering by columns or associations, ascending/descending, with NULLS handling and random ordering -- without exposing you to SQL injection.

Required Ruby Version

>= 3.3

Authors

Jon Bracy

Versions

  1. 10.0.0.rc1 July 15, 2026 (9 KB)
  2. 8.0.1 September 04, 2026 (12 KB)
  3. 8.0.0 August 27, 2026 (10.5 KB)
  4. 7.0.0 August 27, 2026 (7.5 KB)
  5. 6.1.0.2 March 23, 2021 (6.5 KB)
Show all versions (18 total)

Pushed by

SHA 256 checksum