added "int", "real", and "IPv4" options to sort function