Sort the list of netcdf variables