added class for sort direction and fixed the universal order of chaos