Revision 19485 trunk/libraries/libDataSource/src/org/gvsig/data/vectorial/order/FeatureComparator.java
FeatureComparator.java | ||
---|---|---|
75 | 75 |
this.textToken= textToken; |
76 | 76 |
this.featureType= featureType; |
77 | 77 |
|
78 |
if (this.textToken.toLowerCase().startsWith("desc ")){
|
|
79 |
this.textParser = this.textToken.substring(5); |
|
78 |
if (this.textToken.toLowerCase().endsWith(" desc")){
|
|
79 |
this.textParser = this.textToken.substring(0,this.textToken.length()-5);
|
|
80 | 80 |
this.ascendent=false; |
81 |
} else if (this.textToken.toLowerCase().startsWith("asc ")) {
|
|
82 |
this.textParser = this.textToken.substring(4); |
|
81 |
} else if (this.textToken.toLowerCase().endsWith(" asc")) {
|
|
82 |
this.textParser = this.textToken.substring(0,this.textToken.length()-4);
|
|
83 | 83 |
} else{ |
84 | 84 |
this.textParser = this.textToken; |
85 | 85 |
} |
Also available in: Unified diff