How to sort arrays? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to sort arrays?

I made a database on Java. I don't know how to sort it by id, name etc

18th Oct 2018, 3:20 PM
Марлен Сейтов
Марлен Сейтов - avatar
3 Answers
+ 1
Here is a simple sorting technique : https://code.sololearn.com/cxjhxc6ywwqL Hope it helps. :)
26th Oct 2018, 11:21 AM
Dinesh Bala
Dinesh Bala - avatar
0
Depending how you stored it, there might be a builtin sort you can use. https://www.geeksforgeeks.org/arrays-sort-in-java-with-examples/
18th Oct 2018, 4:12 PM
John Wells
John Wells - avatar