add support for different order variables in netcdf files