added > and < sort
added few tests