I am using "sort table" bookmarklet that works very well.
https://www.squarefree.com/bookmarklets/pagedata.html
I can use it on any page where there is a table. For e.g.
But is it possible to sort the text in the next section that does not have table properties? For e.g. how do I sort the words in the section?
===इंग्लिश शब्दास मराठी शब्द सूचना===
Is it possible to re-write the same bookmarklet to sort text in any input textbox?
Update:
I am using decorate-sort-undecorate idiom
awk '/=/ {c++} {print c+1, $0}' file.txt | sort -n | cut -d' ' -f2- | sed '/^$/d'
It will look for "equal to" sign and number all the lines in that particular section to be later sorted on. This is working as expected. But I need to copy-paste the text from wiki to linux prompt. I guess bookmarklet will be quicker. The page mentioned above is just an example. I need to be able to sort the text typed in any text area of the browser. The relevant wiki page does not mention how to do this in javascript.
https://en.wikipedia.org/wiki/Schwartzian_transform
from sort text found in any input textbox
No comments:
Post a Comment