I am developing my application with ruby on rails 6 and I need to apply a function so that the user can sort the rows of a table. I\'m trying the ransack gem and it works pe