<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>428940</bug_id>
          
          <creation_ts>2020-11-10 18:37:18 +0000</creation_ts>
          <short_desc>Investment Quantities Not Sorting Properly</short_desc>
          <delta_ts>2024-12-19 10:13:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmymoney</product>
          <component>general</component>
          <version>5.1.0</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>bryan.williams7889</reporter>
          <assigned_to name="KMyMoney Devel Mailing List">kmymoney-devel</assigned_to>
          <cc>amber</cc>
    
    <cc>ralf.habacker</cc>
          
          <cf_commitlink>https://invent.kde.org/office/kmymoney/commit/68b81627958ee33b26301b674207da47d065f6f8</cf_commitlink>
          <cf_versionfixedin>5.2</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1973757</commentid>
    <comment_count>0</comment_count>
    <who name="">bryan.williams7889</who>
    <bug_when>2020-11-10 18:37:18 +0000</bug_when>
    <thetext>STEPS TO REPRODUCE
1. Go to the &quot;Investments&quot; Screen 
2. Sort by Quantity.

OBSERVED RESULT

Quantities sort as such: 1, 10, 11, 12, ..., 2, 20, 21, 22, ...
The opposite is true sorting descending.

EXPECTED RESULT

Quantities should sort as: 1, 2, 3, 4, ... , 9, 10, 11, 12, ... 19, 20, 21, 22, ...
Or the opposite if sorting descending.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.20.1
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Kernel Version: 5.4.72-1-lts
OS Type: 64-bit

ADDITIONAL INFORMATION
N/A</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973782</commentid>
    <comment_count>1</comment_count>
    <who name="Jack">ostroffjh</who>
    <bug_when>2020-11-10 20:52:16 +0000</bug_when>
    <thetext>It&apos;s a known problem, but I&apos;ll have to check later for a duplicate bug.   It&apos;s sorting alpha instead of numeric.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2029308</commentid>
    <comment_count>2</comment_count>
    <who name="Wei Qi Ong">amber</who>
    <bug_when>2021-05-02 04:34:48 +0000</bug_when>
    <thetext>Looks like regression of 332924 
https://bugs.kde.org/show_bug.cgi?id=332924

It is happening for the Value column as well, my version 5.1.1-fa0b69e8e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2052162</commentid>
    <comment_count>3</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2021-08-09 05:39:10 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/office/kmymoney/-/merge_requests/113</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2054336</commentid>
    <comment_count>4</comment_count>
    <who name="Thomas Baumgart">tbaumgart</who>
    <bug_when>2021-08-18 21:34:35 +0000</bug_when>
    <thetext>Git commit 819f260084b7e29713ce6fec1efcd0946c427740 by Thomas Baumgart, on behalf of Wei Qi Ong.
Committed on 18/08/2021 at 19:40.
Pushed by tbaumgart into branch &apos;master&apos;.

Investment view, Equities: sort by actual value instead of display value
Related: bug 332924

M  +22   -3    kmymoney/models/equitiesmodel.cpp
M  +1    -0    kmymoney/views/kinvestmentview_p.h

https://invent.kde.org/office/kmymoney/commit/819f260084b7e29713ce6fec1efcd0946c427740</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2197273</commentid>
    <comment_count>5</comment_count>
    <who name="Thomas Baumgart">tbaumgart</who>
    <bug_when>2023-01-14 05:53:18 +0000</bug_when>
    <thetext>Git commit 68b81627958ee33b26301b674207da47d065f6f8 by Thomas Baumgart.
Committed on 14/01/2023 at 05:53.
Pushed by tbaumgart into branch &apos;5.1&apos;.

Investment view, Equities: sort by actual value instead of display value

Backporting commit 819f2600 to stable 5.1 branch
Related: bug 332924

M  +28   -1    kmymoney/models/equitiesmodel.cpp
M  +2    -1    kmymoney/models/equitiesmodel.h

https://invent.kde.org/office/kmymoney/commit/68b81627958ee33b26301b674207da47d065f6f8</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>