altschool-opensource-names icon indicating copy to clipboard operation
altschool-opensource-names copied to clipboard

sorting the names

Open Darrkzero opened this issue 2 years ago • 8 comments

the names should be sorted alphabetically when the refresh button is clicked

Darrkzero avatar Aug 15 '22 18:08 Darrkzero

Good suggestion. What are your ideas around achieving this?

Oluwasetemi avatar Aug 15 '22 18:08 Oluwasetemi

using node.js to read and edit the text.txt file should be able to achieve it

Darrkzero avatar Aug 16 '22 10:08 Darrkzero

You can check the sorted.js file. I have an implementation for that and it includes read and writing with nodejs. Let me know what should be done. Next. Thanks for jumping on this issue.

Oluwasetemi avatar Aug 16 '22 12:08 Oluwasetemi

I will close this issue @Darrkzero. Waiting for your response.

Oluwasetemi avatar Aug 16 '22 19:08 Oluwasetemi

the sorted.txt file is perfect. You can create a different button to switch from text.txt file to sorted.txt file to make the names appear in alphabetical order.

Darrkzero avatar Aug 16 '22 19:08 Darrkzero

Yes that will be a great one but we could use JavaScript to sort it on the fly and replace instantly.

Oluwasetemi avatar Aug 16 '22 20:08 Oluwasetemi

That will also work.

Darrkzero avatar Aug 16 '22 20:08 Darrkzero

Attempted this in #743. Kindly review and give feedback. Also, i don't know if the ordered.js and sorted.txt files are needed anymore.

manlike-samm avatar Aug 18 '22 18:08 manlike-samm