sort implemented with 3 flags sort,rec=verse,numeric sort