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 - Sort selected lines - plugin available
Summary: Sort selected lines - plugin available
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-22 15:18 UTC by entonio
Modified: 2016-07-01 18:07 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.