Wow! The behaviour of sort in scalar context is undefined. I had no idea.
So why sorting in scalar context in the first place? Well...
is($oGraph->aName() + 0, 19, "Returns all nodes");
(the last thing in sub aName is to sort the list)
I understand the point of not doing an unecessary sort, but... why just not let it return the unsorted list in scalar context, i.e. the item count?
Well, at least I learned something new today.