I created a hashtable array.. Hashtable Scores[] = new Hashtable[Max]; for ( int i=0; i < Max; i++ ) { Scores[i] = new Hashtable(); } and then each Scores[i] is populated with while loop start through database.... { if ( rs.getInt( "og_id" ) != null ) { Scores[counter].put( "og_id", new Integer( rs.getInt( "og_id" ) ) ); } if ( rs.getInt( "score" ) != null ) { Scores[counter].put( "score", new Integer( rs.getInt( "score" ) ) ); } counter ++; } end while loop I now would like to be able to sort this array by "score." For each hashtable in the array I want to pull the score out and then put this into a standard int array, but in order in the int array. Possibly I don't have to put the hashtables in order by score but could somehow just put them into the int array in order? There is more logic building the hashtable array then I have shown (for clarity) otherwise I would have just ordered my sql statement to pull it in order. I'm not to familiar with utilitizing the "implemements Comparable" interface either. There's probably an easy way to do this, but being new to java it hasn't come to me:) Thanks, Rick =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets