I have nested collection inside a java spring mongodb object. Can I sort the nested collection based on the values it hold?
class A {
List<B> blist;
..
}
class B {
String date;
}
So here, I want to sort the blist collection based on the date. Is it possible by spring annotations?