attempt to rearrange details index in model after sorting