Venturing a go here ..
Assuming source data is in sheet: X,
cols A to C, data from row1 down
10 Text1 Data1
15 Text2 Data2
20 Text3 Data3
15 Text4 Data4
11 Text5 Data5
20 Text6 Data6
etc
and what you want to extract are lines which are duplicates, going by the
number in the key col A, with the duplicates extract sorted in say, ascending
order by the key col A viz:
15 Text2 Data2
15 Text4 Data4
20 Text3 Data3
20 Text6 Data6
Try this to get the above extracts in another sheet
In a new sheet,
Put in A1:
=IF(X!A1="","",IF(COUNTIF(X!A:A,X!A1)=1,"",X!A1+ROW()/10^10))
Put in B1:
=IF(ROW()>COUNT($A:$A),"",INDEX(X!A:A,MATCH(SMALL($A:$A,ROW()),$A:$A,0)))
Copy B1 across to D1 (or more, if your actual source data spans more than 3
cols). Then just select A1

1 and copy down to cover the max expected extent
of data in X, eg down to D2000. Hide away col A. Cols B to D will return the
required extracts from X, with all duplicate lines neatly bunched at the top,
sorted in ascending order by the value in X's col A.
For easy try-out of the above, simply make a copy of your actual source
sheet, name it as: X, ensure that the source data in X starts in row1, then
plug in the formulas as-is and breeze away. You can always rename the sheet
later (if required) and leave it to Excel to auto-change the name in the
formulas.