Add a sort snippet