Merge pull request #2568 from StantonVentures/2567_order_datasources_alpha

sort datasources alphabetically
This commit is contained in:
Arik Fraimovich 2018-06-06 11:02:25 +03:00 committed by GitHub
commit 8bffc6f45d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,7 @@ class DataSourceListResource(BaseResource):
except AttributeError:
logging.exception("Error with DataSource#to_dict (data source id: %d)", ds.id)
return sorted(response.values(), key=lambda d: d['id'])
return sorted(response.values(), key=lambda d: d['name'])
@require_admin
def post(self):