Skip to content

Conversation

midichef
Copy link
Contributor

In response to @frosencrantz's suggestion, here's a draft to start off a discussion. It makes column names one character wider to make room for the same sort symbol used for the column headers.

@midichef
Copy link
Contributor Author

The sort arrows look like this, to the left of the column names:
columns_sort_arrows

columns = [
ColumnAttr('sheet', type=str),
ColumnAttr('name', help='rename the column on the source sheet'),
Column('name', getter=lambda c, r: (sort_disp_sym(c,r) or ' ') + r.name, help='rename the column on the source sheet'),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see what you're going for here, it's clever. But the column value can't include the sort symbol, or it will make things difficult (for example editing the value). I think the idea from #2649 for a separate sort order column is the most workable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops yes, this breaks editing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants