Added ParseSorts method