Notepad++: How to Sort Text by Value

preview_player
Показать описание
In this video we take a look at how to sort text by value using Notepad++.

If you enjoyed the video don't forget to like, comment and subscribe. Thanks for watching.
Рекомендации по теме
Комментарии
Автор

Thanks for the short and simple video. I hate it when some people just ramble on and on about all the things I don't want or need, instead of the one thing I do.

thatguy
Автор

I haven't got line operation, is there any plugin to have ?

LaurentBessondelyon
Автор

This video really should have included sorting by columns as this is a frequently needed operation. Below is how to do this:-
- There is merely one extra step to do first, namely select the column of data to sort on first. Smaller lists can be selected by holding down alt as you select. For longer lists, select the start of the string in the top row of the section of rows to be sorted (the very top row if it's the entire document) then press alt and shift, then use the arrow keys to move/jump to the right hand end of the column on the last row to be sorted.
- Once the column has been highlighted / selected as above, then use the menu to select Edit/Line Operations/Sort ... as per the video.
- To be slightly more complete, in addition to sorting ascending and descending, where sorting by entire lines or by columns there are options to be case sensitive/insensitive and how to treat numbers, sort into a random order or reverse order etc. etc.
- To sort on several columns, such as a date, when entered the British way (day then month then year), first sort on the year, then select rows from only one year at a time and sort on the month, repeat for the day. Tedious indeed. Alternatively, reverse the date strings, perhaps in a separate column, then sort on the entire date and the rest of the line so that multiple lines with the same date are sorted by the remainder of the line. Then select that reversed date on its own and hit delete, unless it being there is not a problem.
- To reverse the date strings, select the years and the following space, hit copy, select the position you want the new reversed date to start, hit paste and the years will be added into each line. Repeat for the months with the dividing slashes, paste them after the pasted years, finally repeat for just the days of the month and paste them after the months. Sorting on dates is then simple.

RJBCollege
Автор

I would like a demo of how to sort data on a text file with more than one column. I can't figure out how to get the procedures you described above to work on a specific column of data when there are multiples

vickydinicola
visit shbcf.ru