Better and quicker sort in logistics

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Support fast search in stats

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>