Added ordering. Added min, max window functions based on order. Fixed reversible min/max compensate function with min/max window functions