Make value key configurable

Along with making the value key configurable, I removed the code for sorting since it wasn't doing anything.