This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 168978

Summary: Sort selected lines - plugin available
Product: editor Reporter: entonio <entonio>
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker CC: hmichel, markiewb, vicente.bissoli
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description entonio 2009-07-22 15:18:27 UTC
There should be an option to sort the currently selected lines, e.g., by selecting:

    public A x;
    public B y;
    private A z;

and commanding 'sort', one would get:

    private A z;
    public A x;
    public B y;

I suggest that leading whitespace should be ignored by default and a 'reverse sort' could be available.
Comment 1 Michel Graciano 2009-07-22 15:33:21 UTC
BTW, it [1] should help you.

[1] http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=3857
Comment 3 pekarna 2013-06-19 01:58:51 UTC
BTW I'd rather leave this features for plugins, I'm using NetBeans for several years now and this is the first time I need it... not sure if it's worth cluttering the UI for everyone.
Comment 4 markiewb 2016-07-01 18:07:44 UTC
(In reply to pekarna from comment #2)
> Also this:
> http://plugins.netbeans.org/plugin/45925/line-tools-nb-7-x-compatible

So lowering prio to P4.