Sort study IDs in study id dropdown