Because we don't want to repeat the sort order perhaps we should do the sort *after* the list has been made. I.e. like:

```
if params['date_range_type'] == 'build':
    data['versions'] = list(has_data_versions)
else:
    data['versions'] = params['versions']
data['versions'].sort(reverse=True)
```