Ask Your Question
0

Default worksheet "sort order" in Notebook

asked 2011-11-04 20:19:18 +0200

Mike Witt gravatar image

updated 2011-11-04 20:20:55 +0200

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?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2011-11-12 14:28:06 +0200

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'

edit flag offensive delete link more

Comments

We should make a ticket for this with your remark.

William Stein gravatar imageWilliam Stein ( 2011-11-12 14:55:59 +0200 )edit

OK, thanks Jason!

Mike Witt gravatar imageMike Witt ( 2011-11-15 11:35:50 +0200 )edit
0

answered 2011-11-12 10:48:05 +0200

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.

edit flag offensive delete link more

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: 2011-11-04 20:19:18 +0200

Seen: 267 times

Last updated: Nov 12 '11