Default view used to sort data table

Hi Guys,

I am wondering to know that i have seen many post related to datatable sorting where we are using defaultview and dataview.
I want to know are these both same?
why we use defaultview and dataview?

i searched and got to know about data view but still confuse for defaultview.
Why do we need to use it before sorting datatable?

anybody please suggest

Can anyone give me a simple sample code to sort out the issue. Still i am facing the same issue.

@nsharma defaultview is use to remove the duplicates before sorting it…