Bug 563072

Summary: [Outline] Sort object members and fields by class object type in alphabetical order
Product: [Eclipse Project] JDT Reporter: Taro Kyo <taro_k>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 4.15   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
The current list of all filters available for the Outline pane. We only have 1 sort filter. none

Description Taro Kyo CLA 2020-05-11 15:43:09 EDT
Created attachment 282785 [details]
The current list of all filters available for the Outline pane. We only have 1 sort filter.

Eclipse IDE for Enterprise Java Developers.

Version: 2020-03 (4.15.0) Stable Release
Build id: 20200313-1211

I believed this will also apply to Version 2020-06 (4.16.0) M1, but considering that is a release candidate, I'm not too worried about it.

Currently, in the Outline view, per attached image, we have the option to sort the field members in alphabetical order. This includes class members, and class methods.

It's great to be able to sort the fields alphabetically, but I wanted to request for more different sort methods. 

One of which is the ability to sort the fields by the class type, and by the return class type in class member methods.

Given a sample code:

public class Abs {}
public class Bar {}

public class Foo {
    public int count;
    public Bar bar;
    public Abs getAbs() { return new Abs(); }
    public Foo getFoo() { return this; }
    public void setCount(int count) { this.count = count; }
}

When sorting by class type, we should get the following list when viewing the Outline for class Foo:

1. getAbs (Abs)
2. bar (Bar)
3. getFoo (Foo)
4. count (int)
5. setCount (void)


Having multiple sort orders in the Outline view would be wonderful, too.