code: function _sorter(a, b){
  	// Use aid property priority.
  	var bpri = aid.priority(b.property_id());
  	var apri = aid.priority(a.property_id());
  	return apri - bpri;
      }
docs: Sort the types within the stack according to the known type priorities.