I'm trying to create a custom agenda setup for my org-mode and I wonder how I can sort the agenda-items by date (Scheduled or deadline): newest first.

I only found time-up / time-down in the parameters, but that does not seem to do what I need.

Another important point would be how to handle items with no scheduled/date or deadline.. they should be placed at the end of the list.

I've been searching some time but did not find a solution. :-(

Kind regards

Martin