Sort package list