sort reference:list output (thanks to Remi Collet)