Fixes Endpoint sorting class.