Author Topic: LiveCode is an authoring environment for making Rich Internet Applications  (Read 1804 times)

0 Members and 1 Guest are viewing this topic.

Software Santa

  • Administrator
  • *****
  • Posts: 4275
Live Code is a fully featured authoring environment for creating Rich Internet Applications

Quote
Code: [Select]
theText = theText.split("\n");
theText = theText.sort(sort_item_3).join("\n");
function sort_item_3(line1, line2) {
     line1 = line1.split(",");
     line2 = line2.split(",");
     if(line1[2] == line2[2]) return 0;
     else if(line1[2] > line2[2]) return -1;
     else return 1;
}

Or the exact same line of LiveCode:
Code: [Select]
sort lines of theText descending by last item of each

http://livecode.com
« Last Edit: March 28, 2014, 07:24:30 PM by Software Santa »

 

email