Sorts package list.