if there is a comment (block/line) in front of the function property, the comment will affect the sorted order of items.
for example, a should be placed in front of b, but b got in front because it's ranked with "/"
+ expected - actual
type FooType = {
+ /* preserves block comment before a */
+ a: number | string | boolean,
/* preserves block comment before b */
b(param: string): number,
- /* preserves block comment before a */
- a: number | string | boolean,
/* preserves block comment before c */
c: number,
}
what was the issue?
if there is a comment (block/line) in front of the function property, the comment will affect the sorted order of items.
for example, a should be placed in front of b, but b got in front because it's ranked with "/"
this PR fix the issue.