fixing some ie8 and sorting issues