// Path: AnyEditTools/src/de/loskutov/anyedit/util/LineReplaceResult.java
// public class LineReplaceResult {
//     /** relative to line start, changed results must have index >= 0 */
//     public int startReplaceIndex;
//     /** changed results must have have range > 0, to replace entire line specify "-1" for the range */
//     public int rangeToReplace;
//     /** changed results must have not-null text to replace */
//     public String textToReplace;
// 
//     @Override
//     public String toString() {
//         StringBuffer sb = new StringBuffer();
//         sb.append("startIndex: ").append(startReplaceIndex);  //$NON-NLS-1$
//         sb.append(", range: ").append(rangeToReplace);  //$NON-NLS-1$
//         sb.append(", text: ").append(textToReplace);  //$NON-NLS-1$
//         return sb.toString();
//     }
// }


import java.util.Comparator;
import de.loskutov.anyedit.util.LineReplaceResult;
/*******************************************************************************
 * Copyright (c) 2011 Duncan Drysdale.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * Contributor:  Clemens Fuchslocher - initial API and implementation
 *******************************************************************************/
package de.loskutov.anyedit.actions.sort;



/**
 * @author Duncan Drysdale
 */
public class SortLineLengthDescending extends AbstractSortAction {

    @Override
    protected Comparator<LineReplaceResult> getComparator() {
        return new AbstractSortComparator<LineReplaceResult>() {
            @Override
// Path: AnyEditTools/src/de/loskutov/anyedit/util/LineReplaceResult.java
// public class LineReplaceResult {
//     /** relative to line start, changed results must have index >= 0 */
//     public int startReplaceIndex;
//     /** changed results must have have range > 0, to replace entire line specify "-1" for the range */
//     public int rangeToReplace;
//     /** changed results must have not-null text to replace */
//     public String textToReplace;
// 
//     @Override
//     public String toString() {
//         StringBuffer sb = new StringBuffer();
//         sb.append("startIndex: ").append(startReplaceIndex);  //$NON-NLS-1$
//         sb.append(", range: ").append(rangeToReplace);  //$NON-NLS-1$
//         sb.append(", text: ").append(textToReplace);  //$NON-NLS-1$
//         return sb.toString();
//     }
// }


// Path: AnyEditTools/src/de/loskutov/anyedit/actions/sort/SortLineLengthDescending.java
import java.util.Comparator;
import de.loskutov.anyedit.util.LineReplaceResult;

/*******************************************************************************
 * Copyright (c) 2011 Duncan Drysdale.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * Contributor:  Clemens Fuchslocher - initial API and implementation
 *******************************************************************************/
package de.loskutov.anyedit.actions.sort;



/**
 * @author Duncan Drysdale
 */
public class SortLineLengthDescending extends AbstractSortAction {

    @Override
    protected Comparator<LineReplaceResult> getComparator() {
        return new AbstractSortComparator<LineReplaceResult>() {
            @Override
            public int compare(LineReplaceResult left, LineReplaceResult right) {