Can no longer invert sort order when displayed as a tree

Description:

When displaying processes in a tree, sorting is not working. Affected version: 3.3.0-2 I tested in 3 different Archlinux installs with the same result.

Test case:

  • Select tree view presentation (F5)
  • In the settings make sure "Tree view is always sorted by PID" is not selected/unchecked
  • Choose a sort column, e.g. PID, TIME etc (either with F6 or mouse)
  • Try to invert sort order with either pressing "I" or mouse click on the column header.

Expected behavior:

  • The tree should get reverse-sorted
  • The little up/down arrow in the header should reverse its direction

Observed behavior:

  • The sort stays the same.
  • The sort direction arrow only changes direction when using keyboard "I", but stays unchanged when using mouse.

This was reported here (https://github.com/htop-dev/htop/issues/1479) however the issue can not be reproduced in either Ubuntu or Debian. It is suspected that Archlinux either has a runtime dependency that doesn't play well with the compiled version of htop or it is a build issue.