Fetch data from core data sorted according to index
In core data entity i have a field index which have index (1,2,3,4,5,6,7,……)
I want to fetch data from core data according to that index but i am unable to do that
I am not able to properly set sortdescriptor
Anyone Please help with some code snippet
To tell the fetch request to sort your data…
Now when you fetch, the data will be sorted according to the index field.