First time here? Check out the FAQ!

Ask Your Question
0

Default worksheet "sort order" in Notebook

asked 13 years ago

Mike Witt gravatar image

updated 13 years ago

Using the notebook interface, when you're looking at a list of worksheets, you can apparently sort them in different ways by clicking on the heading at the top of a column (I guess this is a pretty standard way to do it).

It appears that, by default, the worksheets are sorted by the last edit date. I would like to change the default behaviour to sort by the name of the worksheet instead. I'm particularly interested in making this change WRT published worksheets on my server. Is there any way to do this?

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
2

answered 13 years ago

Jason Grout gravatar image

If you look in the notebook source, in $SAGE_ROOT/devel/sagenb-main/sagenb/notebook/twist.py, search for "last_edited". It should bring you to line 1593 or so. Change 'last_edited' to whatever you want the default sort order to be. The possibilities are given in the sort_worksheet function in notebook.py (last function in the file) as 'last_edited', 'owner', 'rating', or 'name'

Preview: (hide)
link

Comments

We should make a ticket for this with your remark.

William Stein gravatar imageWilliam Stein ( 13 years ago )

OK, thanks Jason!

Mike Witt gravatar imageMike Witt ( 13 years ago )
0

answered 13 years ago

William Stein gravatar image

No, this is not implemented... yet. It's a good idea for a feature. I don't remember anybody suggesting it. The feature would be something you configure through the settings link.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 13 years ago

Seen: 341 times

Last updated: Nov 12 '11