fix for date sort remove aux vars