custom sorting for me/rails apps