seiyab / prettier-plugin-sort-members

MIT License
6 stars 1 forks source link

Alphabetical ordering breaks with hyphen keys #34

Closed mbohgard closed 6 months ago

mbohgard commented 7 months ago

Given "sortMembersAlphabetically": true, plugin formats code like this:

export type DataEndpoints = {
  user: Endpoint<UserResponse>;
  'repair-orders': Endpoint<RepairOrdersResponse>;
};

where user should be sorted below 'repair-orders'

seiyab commented 7 months ago

That's true. It's a bug (or lacking feature). I'll investigate it.

seiyab commented 7 months ago

@mbohgard Would you try version 0.1.1?

seiyab commented 6 months ago

Version 0.1.1 should resolve this. Close this anyway. Tell me if you still have this problem or see other issues. Thank you for feedback!