Added a new pipe to perform sorts with a custom sorting function