order pictures by id when displaying an album