java - how can you sort by date for an ArrayList with TreeMap as value -



java - how can you sort by date for an ArrayList with TreeMap as value -

in code have arraylist<treemap<string, object>>. treemap have key , value. there key named sent_date value in format of yyyy-mm-dd hh:mm:ss. can't find way sort list...can please help? thanks.

you can utilize collections.sort(list, comparator), have implement comparator<map<string,?>> need (i.e. retrieve sent_date 2 maps , compare those).

java map treemap

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -