NSPredicate Example for Swift 2.2

17 views
Skip to first unread message

Raki iOS Dev

unread,
Apr 11, 2016, 5:32:07 AM4/11/16
to iphonesdkd...@googlegroups.com
Hi Folks,

I am looking to sort the based on the time.

I have list of products based on different timings. I need to group the products based on these timings and then sort the same.

Example : 
Product 1 - 6:30
Product 2 - 8:00
Product 3 - 9:00
Product 4 - 6:30
Product 5 - 12:00
Product 6 - 4:00
Product 7 - 8:00
Product 8 - 9:00 

Expected :
4:00 
Product 6

6:30 
Product 1
Product 4

8:00
Product 2
Product 7

9:00
Product 3
Product 8

12:00
Product 9

Please help on this.

Regards,
Rakesh.Y,
iOSDeveloper,
Bangalore,India.
http://beginnersiosdev.blogspot.com/

ajay

unread,
Apr 11, 2016, 8:39:54 AM4/11/16
to iphonesdkd...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "iPhone SDK Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iphonesdkdevelop...@googlegroups.com.
To post to this group, send email to iphonesdkd...@googlegroups.com.
Visit this group at https://groups.google.com/group/iphonesdkdevelopment.
For more options, visit https://groups.google.com/d/optout.



--

-by
ajay kumar
IOS developer
+91-8867712147

Raki iOS Dev

unread,
Apr 11, 2016, 8:43:43 AM4/11/16
to iphonesdkd...@googlegroups.com
Thanks Ajay for the quick response.
I already tried this, but it did not work out for me.

Regards,
Rakesh.Y,
iOSDeveloper,
Bangalore,India.
http://beginnersiosdev.blogspot.com/

Reply all
Reply to author
Forward
0 new messages