added sort criteria so serial numbers are in order