Fix sorting, test against path info instead of request uri.