Bug 510497

Summary: KDE Plasma System Monitor: History Page Rows are Sorted Incorrectly When More Than 10 Rows Exist
Product: [Applications] plasma-systemmonitor Reporter: Rojogra <roland.graf>
Component: generalAssignee: KSysGuard Developers <ksysguard-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ahiemstra, kde, plasma-bugs-null
Priority: NOR    
Version First Reported In: 6.4.5   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Rojogra 2025-10-11 15:41:20 UTC
STEPS TO REPRODUCE
1. Start Plasma System Monitor and navigate to a History page (or create a new one).
2. Click [Edit Page].
3. Add sensors/rows until the list contains more than 10 entries.
4. Arrange the rows in a specific, non-default order.
5. Click [Save changes].
6. Close the application.
7. Relaunch System Monitor and select the previously edited History page.

OBSERVED RESULT
The rows on the History page are displayed in an incorrect order. Row 10 is placed immediately after Row 1 (e.g., Row 1, Row 10, Row 2, Row 3...).

EXPECTED RESULT
The rows should maintain the configured numerical order (Row 1, Row 2, ..., Row 9, Row 10).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSUSE Tumbleweed 20251007 
KDE Plasma Version: 6.4.5 
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2

ADDITIONAL INFORMATION
The issue appears to be due to lexicographical (alphabetical) sorting of the row indices in the configuration file (~/.local/share/plasma-systemmonitor/*.page) instead of numerical sorting. For example, row index '10' is incorrectly placed immediately after '1' instead of after '9'.
Comment 1 Arjen Hiemstra 2025-10-13 12:37:03 UTC

*** This bug has been marked as a duplicate of bug 506154 ***