The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Konstrukt::Plugin::sortlines - Sort all lines of plaintext nodes

SYNOPSIS

Usage:

        <& sortlines &>
                some
                <!-- comments -->
                unsorted
                lines
                <!-- will be put -->
                here
                <!-- on top of the list -->
        <& / &>

Result:

        <!-- comments -->
        <!-- will be put -->
        <!-- on top of the list -->
        here
        lines
        some
        unsorted

DESCRIPTION

This plugin will sort the input lines

METHODS

prepare

If the input is not dynamic, we can already sort in the prepare step.

Parameters:

  • $tag - Reference to the tag (and its children) that shall be handled.

execute

Sort the input.

Parameters:

  • $tag - Reference to the tag (and its children) that shall be handled.

process

As prepare and execute are almost the same each run will just call this method.

Parameters:

  • $tag - Reference to the tag (and its children) that shall be handled.

AUTHOR

Copyright 2006 Thomas Wittek (mail at gedankenkonstrukt dot de). All rights reserved.

This document is free software. It is distributed under the same terms as Perl itself.

SEE ALSO

Konstrukt::Plugin, Konstrukt