i want a make a feed reader...i want load politics news from multiple data dource in one tableview synchronously.
what do i do?
i went to this link: [table view with multiple data sources/nibs](https://stackoverflow.com/questions/35960403/ios-swift-table-view-with-multiple-data-sources-nibs)

but this solution is not synchronously
So basically what should be the approach when we have multiple data source but single instance of table view to show the data?
['https://Stackoverflow.com/questions/40585550', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6856597/']
you are sorting from the older to the newer date which is ok,
if you need upside down then do invert the comparation criteria by doing:

```
return date2.compareTo(date1);

```

another way to go is inverte the sorted list...

1st sort then do `Collections.reverse();`

Edit:
=====

I try your code and the reason is the format is not well defined, therefore the dates are wrong

try this:

```
 DateFormat format = new SimpleDateFormat("MM/dd/yyyy");
 Date date1 = null;
 Date date2 = null;
 try {
      date1 = format.parse(o1);
      date2 = format.parse(o2);
 } catch (ParseException e) {
      e.printStackTrace();
 }

                return date2.compareTo(date1);

```
In java 8 you can write it in this way..

Please note that I have used apache CompareToBuilder.

```
Collections.sort(opportunities,
            Collections.reverseOrder((item1, item2) -> new CompareToBuilder()
                    .append(item1.getExpires(), item2.getExpires()).toComparison()));

```