Add sort method to the pure php mux class.