I have a map like this-
def a=["Ak":[data1,col,'ak'],"BH":[data2,col,'bh']]
In Another map
def b=[:]
data is inserted using
a.each{key,val->
def available = val.get(0)
if (available){
b[key] = val
}
}
now acording to this map b i need to assign data in table in view.
My problem is i want to check the data size of both data1 and data2 and display the data with big size each time when a user drill down to the view.
Assuming you mean you want the one with the most data first, you can do (assuming Groovy later than 1.7.9):