added sorting less than and eq functions