Just a nit - you don't really need the else statement, since you always append order by expires.