How to sort a collection?

P

Prasanna

Hi,

I have a collection object (SPFileCollection in Sharepint v2 API) that does
not have a sort method of its own. Does anyone know of any class that would
take in the collection and sort it on a paricular attribute?
 
G

Greg Ewing [MVP]

Prasana, is the collection 1 dimensional? If so you can pass it to
Array.Sort(...).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top