bugfix to bugfix to sorting