i have a collection view source which is populated with invoice items.
Each invoice item contains an invoice reference which is stored in the database as a varchar, although it is a numeric value.
I am using Linq to return my objects from the database and a converter to bind everything to the CVS. I need to sort by the invoice reference but it is sorting as string
(ie. 1, 100, 2, 200, 3, 300)
How can I apply a converter to the the sort parameter before if performs the sort?