Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ailabs-software/6371ac6cd140ca87a9baae69c8865ec9 to your computer and use it in GitHub Desktop.
Save ailabs-software/6371ac6cd140ca87a9baae69c8865ec9 to your computer and use it in GitHub Desktop.
Anon source
var DEFAULT_ACTIVE_FIELDS;
var Lpipelinesystem_dataservice_PipelineDAL_2_classLit = createForClass('pipelinesystem.dataservice', 'PipelineDAL', 169);
function $compare_1(this$static, s1, s2){
var s1_rank, s2_rank;
s1_rank = $rankItem(this$static, s1);
s2_rank = $rankItem(this$static, s2);
if (s1_rank > s2_rank) {
return 1;
}
else if (s1_rank < s2_rank) {
return -1;
}
return 0;
}
function $rankItem(this$static, item_0){
var clonedSegments;
if (item_0.segments) {
clonedSegments = new ArrayList_0(this$static.val$segments2);
$retainAll(clonedSegments, new ArrayList_0(item_0.segments));
return clonedSegments.array.length;
}
else {
return 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment