I have a custom collection that gets updated/increases the attribute called "views" by 1 per view/access (observer records each view).
I later filter this collection to output data for viewing (see below);
The sort is outputting 2 ~ 9 above 10 etc (like the default product sort values) as per example below (foreach);
5 views 3 views 2 views 22 views ... 10 views
but really the higher the number should be output first. Maybe its the way i have created my table column in the sql setup file as I see that ID values are sorted correctly when using this.
`id` int(11) unsigned NOT NULL auto_increment, `views` varchar(255) default NULL,
How would I filter the collection correctly to output higher values first (DESC)?