I have a List<Size> list1 which is from parameters.getSupportedPreviewSizes()
I would like to sort it in ascending order (width * height).
I have tried Collection.sort, but seems not work.
What is the best way to sort the list? Thanks.
I have a List<Size> list1 which is from parameters.getSupportedPreviewSizes() I would like to sort
Share
Use a custom
Comparator.