Declared in NSArray+MerchantSort.h
NSArray+MerchantSort.m

Overview

  • An extension (category) method to NSArray so

  • one can sort an array of MMMerchUser by a

  • number of criteria.

Instance Methods

sortMerchantByCusine

  • Sort an array of merchant users by
- (NSArray *)sortMerchantByCusine

Discussion

  • cusine type.

Declared In

NSArray+MerchantSort.h

sortMerchantByDistance

  • Sort an array of merchant users by
- (NSArray *)sortMerchantByDistance

Discussion

  • distance from the user.

Declared In

NSArray+MerchantSort.h

sortMerchantByTopRated

  • Sort an array of merchant users by
- (NSArray *)sortMerchantByTopRated

Discussion

  • rating in descending order (top rated

  • to lowest rating).

Declared In

NSArray+MerchantSort.h