Added sort classes and methods
Added selecting wagons by passenger count.