severe fix for appengine: xpath functions returned values in arbitrary order