Add customizable sort mechanism