app: sort message list before comparing them

I don't know why beanstalkd don't keep list sorted...