When you’re creating custom post types into your wordpress site you can see it’s posts as list.But there is no option to sort each columns.You have to manually add this facility to do this.I’ll describe here very simply how to do this without any plugin.

wordpress sort custom post type columns

How to add custom post type columns?

I’ll first show you how to add custom columns.Then you can understand the post better.
My custom post type is “Campaigns“.

Sort custom post type columns

After add that you can sort the columns.
wordpress sort custom post type column

Hope this will help to your custom plugin.