Sorts container list, handles small bugs.