Make feature_extract output keys in order numerically

Without this change, the order that keys come out is not the same order as the input. This is because leveldb will sort with the ASCII ordering, not the numeric ordering. I believe the numeric ordering is more reasonable.