Ensure compar when pretty permalinks are disabled