11/11/2023 0 Comments Notepad ++ sort linesMy ignorance of this feature explains why I proposed, in some posts, a work-around, based on regular expressions !! Fix sorting by column key using incorrect key values. Fix column key sort with col block starting in col1 bug.Ģ4. It is these two lines, in the change.log file, of the last v7.9 version, which alerted me about a possible unknown feature ( for me ) ! 19. I really do not understand how I could miss this important feature, for years :-(( Indeed, after verifications, this nice improvement exists since N++ version v6.7.9, which came out in June 2015 ! If you're going to do this more often you could record a macro with these steps.My God ! Although I’ve practiced the Notepad++ software since many years do you know that I have not realized, yet, that we can sort text :įrom a specific column till the end of line, with a zero-char column selectionįrom a n-chars key, between two columns, with a non-zero column selection If you need longer numbers just add more zeros to the first replacement, and increase the 10 in the second replacement accordingly. Once sorted the last expression will strip all leading zeros so you'll have your original numbers back. Those will sort in the order you want them to sort. The second replacement than takes the last 10 digits of the number to bring everything back to the same length, giving you numbers like 0000000839, 0000000003 etc. It works by adding 10 zeros before the number, even though that's probably too much. These are the steps (works for number up to 10 characters) Then they will sort correctly and you can use another replacement to strip the leading spaces/zeros afterwards. I don't know what your file looks like, but I'd use regular expressions to add spaces or zeros before each number to make them the same length (e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |