Export factory instead of constructor.
Test custom property sorting.
Support sortBy as a function.