lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
246 stars 17 forks source link

25932565: Xcode 7.3: plutil should support sorting dictionaries by key #14593

Open openradar-mirror opened 8 years ago

openradar-mirror commented 8 years ago

Description

Diffing plists is hard, mainly because the sort order in NSDictionaries is not stable. Thus, a simple one-key insertion can be lost in the noise of dozens of rearranged keys.

plutil, being the main tool people would use to manipulate this file type, should get an argument switch that makes it output dictionary elements in a stably sorted order. This would make it suitable for making it a default filter preset in FileMerge for plist files, for instance, making it a lot easier to diff two plist files.

Product Version: Xcode 7.3 (7D175) Created: 2016-04-26T16:39:32.447870 Originated: 2016-04-26T18:39:00 Open Radar Link: http://www.openradar.me/25932565

openradar-mirror commented 8 years ago

Modified: 2016-04-26T16:39:32.448010