• Login
Community
  • Login

Line Operations: Sort Lexicographically is buggy with 128 lines or more.

Scheduled Pinned Locked Moved General Discussion
sort bug
3 Posts 3 Posters 1.6k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L
    Lothar Bongartz
    last edited by Nov 13, 2018, 4:30 AM

    I tried to sort a list of words, one per line.
    The result was only randomly sorted.

    There is no way to sort 128 lines/words, both ascending and descending.

    I reduced the number of lines to 64 and it worked.

    The failed sort result (look for “_header” for example):

    CDSRATINGWIDGET689
    CDSSCROLLINGRAVE
    CDSWIDEXCLOGO
    CDSROWLOGO689
    CDSWIDWRL
    Hangout
    SkypeButton
    SkypeButton_paraElement
    _bol
    _bom
    _bor
    _slide
    _contact
    _cover
    _cover1
    _cover2
    _email
    _fbl
    _fbls
    _fbm
    _fbor
    _go
    _tumblr
    _tweets
    _yelp
    _trip
    _youl
    _your
    _imed
    _wea
    _go
    _tumblr
    _tweets
    _trip
    _grav
    _header
    _header_100
    _icons
    _iconsep
    _info_open
    _link
    _map
    _pan
    _map_dir
    _mapw
    _menu
    _mm
    _mm
    _panh
    _panh
    _phone
    _photo
    _pin
    _ins
    _fli
    _fbc
    _fbd
    _twid
    _good
    _cover
    _doci
    _link
    _pin
    _ins
    _fli
    _fbc
    _fbd
    _twid
    _good
    _cover
    _doci
    _link
    _pr
    _print
    _purl
    _qr1
    _qr1
    _qr2
    _qr1
    _qr2
    _qrc
    _reviews
    _slids
    _soc
    _space
    _title
    _header
    _title
    _header
    _title
    _header
    _title
    _header
    _traf
    _update
    _url
    _view
    _weads
    _weat
    _weather
    _wel
    _wmenu
    addc
    audioOn
    audioOff
    currencies
    google_translate_element
    google_translate_element_100
    gplus
    modesel-button
    modesel-menu
    pApprec
    pHeader
    pLink
    pList
    pPage
    pPlacePic
    pQRCode
    pRatings
    pcover
    pcover1
    pcover2
    pfbd
    pgood
    pmap
    ptwid
    q
    viewsel

    Thanks
    Lothar Bongartz, 1der1.com

    S 1 Reply Last reply Nov 13, 2018, 1:20 PM Reply Quote 0
    • S
      Scott Sumner @Lothar Bongartz
      last edited by Nov 13, 2018, 1:20 PM

      @Lothar-Bongartz

      Well, if I sort your already “sorted” list, the result looks okay to me. Really, though, why didn’t you post the list you started with as well? That way, someone can try to duplicate more precisely what you are seeing happen.

      Also, please post your debug info (go to the ? menu and choose Debug Info… and post the result here.

      1 Reply Last reply Reply Quote 1
      • P
        PeterJones
        last edited by Nov 13, 2018, 2:25 PM

        @Lothar-Bongartz ,

        I cannot replicate your results. If I take the list that you posted (noticing there are multiple instances of _header and _title that alternate), and I run Edit > Line Operations > Sort Lines Lexicographically Ascending, then I get

        CDSRATINGWIDGET689
        CDSROWLOGO689
        CDSSCROLLINGRAVE
        CDSWIDEXCLOGO
        CDSWIDWRL
        Hangout
        SkypeButton
        SkypeButton_paraElement
        _bol
        _bom
        _bor
        _contact
        _cover
        _cover
        _cover
        _cover1
        _cover2
        _doci
        _doci
        _email
        _fbc
        _fbc
        _fbd
        _fbd
        _fbl
        _fbls
        _fbm
        _fbor
        _fli
        _fli
        _go
        _go
        _good
        _good
        _grav
        _header
        _header
        _header
        _header
        _header
        _header_100
        _icons
        _iconsep
        _imed
        _info_open
        _ins
        _ins
        _link
        _link
        _link
        _map
        _map_dir
        _mapw
        _menu
        _mm
        _mm
        _pan
        _panh
        _panh
        _phone
        _photo
        _pin
        _pin
        _pr
        _print
        _purl
        _qr1
        _qr1
        _qr1
        _qr2
        _qr2
        _qrc
        _reviews
        _slide
        _slids
        _soc
        _space
        _title
        _title
        _title
        _title
        _traf
        _trip
        _trip
        _tumblr
        _tumblr
        _tweets
        _tweets
        _twid
        _twid
        _update
        _url
        _view
        _wea
        _weads
        _weat
        _weather
        _wel
        _wmenu
        _yelp
        _youl
        _your
        addc
        audioOff
        audioOn
        currencies
        google_translate_element
        google_translate_element_100
        gplus
        modesel-button
        modesel-menu
        pApprec
        pHeader
        pLink
        pList
        pPage
        pPlacePic
        pQRCode
        pRatings
        pcover
        pcover1
        pcover2
        pfbd
        pgood
        pmap
        ptwid
        q
        viewsel
        

        … showing that now, all the underscore words are also properly sorted, with the multiple _headers all adjacent, as they should be.

        As Scott asked, what’s your ? > Debug Info ? Mine is

        Notepad++ v7.5.8   (32-bit)
        Build time : Jul 23 2018 - 02:03:53
        Path : C:\Program Files (x86)\Notepad++\notepad++.exe
        Admin mode : OFF
        Local Conf mode : OFF
        OS : Windows 10 (64-bit)
        Plugins : ComparePlugin.dll dbgpPlugin.dll DSpellCheck.dll MarkdownViewerPlusPlus.dll NppConverter.dll NppExec.dll NppFTP.dll PluginManager.dll PreviewHTML.dll PythonScript.dll XMLTools.dll mimeTools.dll NppExport.dll
        
        1 Reply Last reply Reply Quote 1
        3 out of 3
        • First post
          3/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors