mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-25 05:32:14 +00:00
GT-3261: Improving sort
This commit is contained in:
parent
83f81e55d9
commit
370e909a55
@ -86,8 +86,8 @@ public class SymbolTableCommand extends LoadCommand {
|
||||
// sort the entries by the index in the string table, so don't jump around reading
|
||||
List<NList> sortedList = nlistList
|
||||
.stream()
|
||||
.sorted((o1, o2) -> Integer.valueOf(o1.getStringTableIndex())
|
||||
.compareTo(Integer.valueOf(o2.getStringTableIndex())))
|
||||
.sorted(
|
||||
(o1, o2) -> Integer.compare(o1.getStringTableIndex(), o2.getStringTableIndex()))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
// initialize the NList strings from string table
|
||||
|
@ -161,8 +161,8 @@ public class DyldCacheLocalSymbolsInfo implements StructConverter {
|
||||
// sort the entries by the index in the string table, so don't jump around reading
|
||||
List<NList> sortedList = nlistList
|
||||
.stream()
|
||||
.sorted((o1, o2) -> Integer.valueOf(o1.getStringTableIndex())
|
||||
.compareTo(Integer.valueOf(o2.getStringTableIndex())))
|
||||
.sorted((o1, o2) -> Integer.compare(o1.getStringTableIndex(),
|
||||
o2.getStringTableIndex()))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
// initialize the NList strings from string table
|
||||
|
Loading…
Reference in New Issue
Block a user