~l3on/ubuntu/precise/rkward/rebuild1

« back to all changes in this revision

Viewing changes to rkward/plugins/data/sort.js

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2010-10-04 14:30:00 UTC
  • mfrom: (12.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20101004143000-qey73molmxxwy4w6
Tags: 0.5.4-1
* new upstream release
* bump standards version to 3.9.1 (no changes needed)
* no more need to remove svncopy.sh-script in rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function calculate () {
 
2
        var object = getValue ("object");
 
3
        var is_data_frame = (getValue ("sortby_frame.enabled") == "true");
 
4
 
 
5
        var saveto = object;
 
6
        if (getValue ("saveto_select") == "other") saveto = getValue ("saveto");
 
7
        var sortby = getValue ("sortby");
 
8
        if (!is_data_frame) sortby = object;
 
9
 
 
10
        echo (".GlobalEnv$" + saveto + " <- " + object + "[order (" + sortby + getValue ("order") + ")");
 
11
        if (is_data_frame) echo (",");
 
12
        echo ("]\n");
 
13
}