check expire from longest to shortes