John, 

I can't speak for Ulf, but a more general solution would be to allow sorting by 
a standard unix SORT set keys. 
That would allow things like - sort by the sample ID after the 3rd dash, then 
by the read direction. 
        -t - -k1,1n -k2,2r # http://unixhelp.ed.ac.uk/CGI/man-cgi?sort

Regards, 
Curtis

PS - granted simple filename sort is a good place to start and  a lot better 
than nothing. Date sort is often useful, too. 


-----Original Message-----
From: galaxy-dev-boun...@lists.bx.psu.edu 
[mailto:galaxy-dev-boun...@lists.bx.psu.edu] On Behalf Of John Chilton
Sent: Tuesday, December 17, 2013 4:03 PM
To: Ulf Schaefer
Cc: galaxy-dev@lists.bx.psu.edu
Subject: Re: [galaxy-dev] sort list of ftp uploaded files

If Galaxy just sorted these files alphabetically before display/import would 
that fix your problem? Or do your users need to be able to modify the order?

-John

On Mon, Dec 16, 2013 at 9:19 AM, Ulf Schaefer <ulf.schae...@phe.gov.uk> wrote:
> Dear all
>
> Is there a way to sort the list of files that a user has uploaded via 
> FTP? Currently they appear on the form of the tool 'Upload File' in 
> random order it seems. There is not much documentation on the <param 
> type="ftpfile" /> tag unfortunately.
>
> If the user just selects all files they end up in his/her history in 
> the same random order, which causes a slight inconvenience when using 
> these files as paired multiple input for a workflow.
>
> The obvious work-around is to put the files into the history one pair 
> at a time, but this becomes a bit onerous for larger number of files.
>
> Thanks a lot for your help.
>
> Cheers
> Ulf
>
> **********************************************************************
> **** The information contained in the EMail and any attachments is 
> confidential and intended solely and for the attention and use of the 
> named addressee(s). It may not be disclosed to any other person 
> without the express authority of Public Health England, or the 
> intended recipient, or both. If you are not the intended recipient, 
> you must not disclose, copy, distribute or retain this message or any 
> part of it. This footnote also confirms that this EMail has been swept 
> for computer viruses by Symantec.Cloud, but please re-sweep any 
> attachments before opening or saving. http://www.gov.uk/PHE
> **********************************************************************
> ****
>
> ___________________________________________________________
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this and other 
> Galaxy lists, please use the interface at:
>   http://lists.bx.psu.edu/
>
> To search Galaxy mailing lists use the unified search at:
>   http://galaxyproject.org/search/mailinglists/

___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this and other Galaxy 
lists, please use the interface at:
  http://lists.bx.psu.edu/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/

___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  http://lists.bx.psu.edu/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/

Reply via email to