Commit 57751526 authored by Richard Hughes's avatar Richard Hughes
Browse files

Fix the sort function for the plugins

parent 8c5ceeb3
......@@ -1720,7 +1720,11 @@ gs_plugin_loader_plugin_sort_fn (gconstpointer a, gconstpointer b)
{
GsPlugin **pa = (GsPlugin **) a;
GsPlugin **pb = (GsPlugin **) b;
return (*pa)->priority - (*pb)->priority;
if ((*pa)->priority < (*pb)->priority)
return -1;
if ((*pa)->priority > (*pb)->priority)
return 1;
return 0;
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment