ActiveRecord sorting using Redis lists