Edited version of alphabetical_paginate (https://github.com/lingz/alphabetical_paginate) to work with Ruby 1.8.7 (:a => 'x') syntax