Line Operations: Sort Lexicographically is buggy with 128 lines or more.
-
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
viewselThanks
Lothar Bongartz, 1der1.com -
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.
-
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 getCDSRATINGWIDGET689 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
_header
s 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