initial sorting and grib2txt fixes