dawati/dawati-shell — comment on commit 6e448ea2580e5e5b5c8cb5ba328403a87641912d
File: panels/applications/src/dawati-netbook-launcher.c line 587
By kalfa:

here if self is NULL it will return -1 even if other is NULL as well.

what about adding
g_return_val_if_fail (self != NULL && other != NULL, 0);

as first check? it very depends on what you think it's best, but what can happen is that you'll order something while that something is not existing. Might it be a problem?