loan add edit sorted