Adding sort capability for the initial query and making arguments to the initial query optional past the second argument. See the heavily documented code