FeatureTable : a binarySearchById function that takes into account
both sorting directions and temporary IDs