Separate tree and list sort orders

Implements the suggestion from https://github.com/htop-dev/htop/issues/399#issuecomment-747861013

Thanks to the refactors from 0bd5c8fb5da and 6393baa74e5, this was really easy
and clean to do.

It maintains the "Tree view always by PID" option in the Settings, which
results in some specific behaviors such as "clicking on the column header to
exit tree view" and "picking a new sort order to exit tree view", for the sake
of the muscle memory of long time htop users. :)
7 files changed
tree: 06b3919321515cc4fdea7de0b5ead4744f3600ec
  1. .github/
  2. darwin/
  3. docs/
  4. dragonflybsd/
  5. freebsd/
  6. iwyu/
  7. linux/
  8. openbsd/
  9. scripts/
  10. solaris/
  11. unsupported/
  12. zfs/
  13. .editorconfig
  14. .gitignore
  15. .travis.yml
  16. Action.c
  17. Action.h
  18. Affinity.c
  19. Affinity.h
  20. AffinityPanel.c
  21. AffinityPanel.h
  22. AUTHORS
  23. autogen.sh
  24. AvailableColumnsPanel.c
  25. AvailableColumnsPanel.h
  26. AvailableMetersPanel.c
  27. AvailableMetersPanel.h
  28. BatteryMeter.c
  29. BatteryMeter.h
  30. CategoriesPanel.c
  31. CategoriesPanel.h
  32. ChangeLog
  33. ClockMeter.c
  34. ClockMeter.h
  35. ColorsPanel.c
  36. ColorsPanel.h
  37. ColumnsPanel.c
  38. ColumnsPanel.h
  39. CommandScreen.c
  40. CommandScreen.h
  41. Compat.c
  42. Compat.h
  43. configure.ac
  44. CONTRIBUTING.md
  45. COPYING
  46. CPUMeter.c
  47. CPUMeter.h
  48. CRT.c
  49. CRT.h
  50. DateMeter.c
  51. DateMeter.h
  52. DateTimeMeter.c
  53. DateTimeMeter.h
  54. DiskIOMeter.c
  55. DiskIOMeter.h
  56. DisplayOptionsPanel.c
  57. DisplayOptionsPanel.h
  58. EnvScreen.c
  59. EnvScreen.h
  60. FunctionBar.c
  61. FunctionBar.h
  62. Hashtable.c
  63. Hashtable.h
  64. Header.c
  65. Header.h
  66. HostnameMeter.c
  67. HostnameMeter.h
  68. htop.1.in
  69. htop.c
  70. htop.desktop
  71. htop.png
  72. htop.svg
  73. IncSet.c
  74. IncSet.h
  75. InfoScreen.c
  76. InfoScreen.h
  77. ListItem.c
  78. ListItem.h
  79. LoadAverageMeter.c
  80. LoadAverageMeter.h
  81. Macros.h
  82. MainPanel.c
  83. MainPanel.h
  84. Makefile.am
  85. MemoryMeter.c
  86. MemoryMeter.h
  87. Meter.c
  88. Meter.h
  89. MetersPanel.c
  90. MetersPanel.h
  91. NetworkIOMeter.c
  92. NetworkIOMeter.h
  93. NEWS
  94. Object.c
  95. Object.h
  96. OpenFilesScreen.c
  97. OpenFilesScreen.h
  98. OptionItem.c
  99. OptionItem.h
  100. Panel.c
  101. Panel.h
  102. Process.c
  103. Process.h
  104. ProcessList.c
  105. ProcessList.h
  106. ProcessLocksScreen.c
  107. ProcessLocksScreen.h
  108. ProvideCurses.h
  109. README
  110. RichString.c
  111. RichString.h
  112. ScreenManager.c
  113. ScreenManager.h
  114. Settings.c
  115. Settings.h
  116. SignalsPanel.c
  117. SignalsPanel.h
  118. SwapMeter.c
  119. SwapMeter.h
  120. TasksMeter.c
  121. TasksMeter.h
  122. test_spec.lua
  123. TESTPLAN
  124. TraceScreen.c
  125. TraceScreen.h
  126. UptimeMeter.c
  127. UptimeMeter.h
  128. UsersTable.c
  129. UsersTable.h
  130. Vector.c
  131. Vector.h
  132. XUtils.c
  133. XUtils.h