Skip to content

Commit

Permalink
Use individual purl fields for ordering #95
Browse files Browse the repository at this point in the history
Signed-off-by: Jono Yang <[email protected]>
  • Loading branch information
JonoYang committed May 17, 2023
1 parent bd36e2e commit 6815a51
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packagedb/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,15 @@ def get_enhanced_package(package):
"""
packages = Package.objects.filter(
package_set=package.package_set
).order_by('package_content', 'purl')
).order_by(
'package_content',
'type',
'namespace',
'name',
'version',
'qualifiers',
'subpath'
)
return _get_enhanced_package(package, packages)


Expand Down

0 comments on commit 6815a51

Please sign in to comment.