how to order strings?

hi,

i have to show some String in my jsp .. this Strings i get dynamiclly from my Database.

now i am showing the String . but i need to make it possible for the admin in a admin jsp to

change the ORDER of the String (sometimes alphabet , sometimes index )

for every string in database i have attribute "index".

how can i do this in the best way ?

want to show the lines and let the admin chose a new order?

something like this:

string 11

string 22

strnig 33

new order:

string 22

string 33

string 11

please anyone an idea?

thankx

[631 byte] By [golanblna] at [2007-11-26 16:32:02]
# 1
You can do it two ways1) use ORDER BY clause in your database query, and pass the order by dynamically 2) use a object comparator
appy77a at 2007-7-8 22:56:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...