Resolve License Sorting issue on Dependencies - Project level

Why are we doing this work

Currently, when sorting dependencies by license, both ascending and descending order give identical results.

Relevant links

Verification Steps

  1. Navigate to https://gitlab.com/gitlab-org/govern/threat-insights-demos/verification-projects/dependencies-graphql-migration/security-reports/-/dependencies
  2. Click on sorting dropdown and select License (both DESC and ASC plus pagination.
Edited by Charlie Kroon