sort by modified when its defined