PlaylistView: move track/playlist reordering code into NSArray category
NSArray+OrderedManagedObjects: add sanity checks