Method
AppStreamComponentget_sort_score
since: 0.12.11
Declaration [src]
guint
as_component_get_sort_score (
AsComponent* cpt
)
Description [src]
Returns the sorting priority of this component.
This will only return a valid value if this component was the result of or involved in a search operation which returned sorted results. In most cases you will not need to access this value explicitly, as all results of search operations in AppStream are already sorted from best match to worst.
The returned value is an arbitrary integer value, valid only for the search terms involved in the search operation that yielded this component as a result.
Available since: 0.12.11